package com.iotek.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iotek.dao.GoodsDao;
import com.iotek.entity.Goods;
import com.iotek.service.GoodsService;

@Service
public class GoodsServiceImpl implements GoodsService{
	
	@Autowired
	private GoodsDao goodsDao;

	@Override
	public List<Goods> findGoods(Goods goods) {
		goodsDao.findGoods(goods);
		return null;
	}

	@Override
	public boolean addGoods(Goods goods) {
		goodsDao.addGoods(goods);
		return false;
	}

	@Override
	public boolean delectGoods(Goods goods) {
		goodsDao.delectGoods(goods);
		return false;
	}

	@Override
	public List<Goods> queryGoods(Goods goods) {
		return goodsDao.queryGoods(goods);
	}

	@Override
	public Goods queryGoodsId(Goods goods) {
		return goodsDao.queryGoodsId(goods);
	}

	@Override
	public boolean updateGoods(Goods goods) {
		return goodsDao.updateGoods(goods);
	}
	
}
